package com.deepface.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取dfl项目相关配置
 *
 * @author dfl
 */
@Component
@ConfigurationProperties(prefix = "dfl")
public class DflConfig
{
  /** 根路径 */
  private static String rootWorkPath;

  /** 根路径 */
  private static String rootFilePath;

  /** 算法端运行接口 */
  private static String apiUrl;

  public static String getRootWorkPath()
  {
    return rootWorkPath;
  }

  public void setRootWorkPath(String rootWorkPath)
  {
    DflConfig.rootWorkPath = rootWorkPath;
  }

  public static String getRootFilePath() {
    return rootFilePath;
  }

  public void setRootFilePath(String rootFilePath) {
    DflConfig.rootFilePath = rootFilePath;
  }

  public static String getApiUrl() {
    return apiUrl;
  }

  public void setApiUrl(String apiUrl) {
    DflConfig.apiUrl = apiUrl;
  }
}
